showScreenshotUI() is needed by the system action, and
showScreenRecordingUI() is conceptually so similar that
it would be odd to export one and not the other.
https://gitlab.gnome.org/GNOME/gnome-shell/-/issues/6885
Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/2877>
/**
* Shows the screenshot UI.
*/
-function showScreenshotUI() {
+export function showScreenshotUI() {
Main.screenshotUI.open().catch(err => {
logError(err, 'Error opening the screenshot UI');
});
/**
* Shows the screen recording UI.
*/
-function showScreenRecordingUI() {
+export function showScreenRecordingUI() {
Main.screenshotUI.open(UIMode.SCREENCAST).catch(err => {
logError(err, 'Error opening the screenshot UI');
});